package com.zkthink.ceres.member.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;
import java.util.Date;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

@Data
public class TuiguangVo {
    private Long id;
    /**
     * 会员昵称
     */
    @ApiModelProperty(value = "会员昵称")
    @Length(max = 20, message = "会员昵称长度不能超过20")
    @TableField(value = "nickname", condition = LIKE)
    @Excel(name = "会员昵称")
    private String nickname;

    /**
     * 会员头像
     */
    @ApiModelProperty(value = "会员头像")
    @Length(max = 500, message = "会员头像长度不能超过500")
    @TableField(value = "headimg", condition = LIKE)
    @Excel(name = "会员头像")
    private String headimg;
    /**
     * 提成
     */
    private BigDecimal ticheng;
    /**
     * 用户消费
     */
    private BigDecimal xiaofei;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date create_time;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createtime;
}
